package com.mecuros.oauth2.order.controller;

import com.mecuros.auth.common.model.LoginVal;
import com.mecuros.auth.common.utils.OauthUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yujianbo
 * @Classname OrderController
 * @Description TODO
 * @Date 2022/4/26 8:11 下午
 */
@RestController
@RequestMapping("/order")
@Slf4j
public class OrderController {

    @RequestMapping("/login/info")
    public LoginVal info(){
        return OauthUtils.getCurrentUser();
    }

    @RequestMapping("/login/admin")
    public LoginVal admin(){
        return OauthUtils.getCurrentUser();
    }
}
